package geektime.spring.springbucks.waiterservice.integration;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class orderListener {

  @StreamListener(Barista.FINISHED_ORDERS)
  public void  listenFinishedOrders(Long id){
    log.info("We've finished an order [{}].",id);
  }

}
